package com.ruimei.entitys.enums;

/**
 * 就读方式
 * @author admin
 *
 */
public enum LearnType {

  DAY("走读"),
  LIVE("住校"),
  HALFLIVE("半走读"),
  NAP("午休"),
  NAT("午托"),
  WET("周托");

  private String name;

  private LearnType(String name){
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public static LearnType matching(String ch){
    switch (ch) {
      case "走读":
        return LearnType.DAY;
      case "住校":
        return LearnType.LIVE;
      case "午休":
        return LearnType.NAP;
      case "半走读":
        return LearnType.HALFLIVE;
      case "午托":
        return LearnType.NAT;
      case "周托":
        return LearnType.WET;
      default:
        return LearnType.LIVE;
    }
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\LearnType.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */